using System;
using System.ComponentModel;
using System.Data;
using System.Runtime.Serialization;

namespace DataAccess
{
    /// <summary>
    /// A custom serializable dataset containing SIG_AVANCE_ACCION information.
    /// </summary>
    [Serializable]
    [DesignerCategory("code")]
    public class SigAvanceAccionMetaData : DataTable
    {
        ///
        /// Constants for table and fields mapping
        ///
        public const String SIG_AVANCE_ACCION_TABLE = "SIG_AVANCE_ACCION";
        public const String MET_ID_FIELD = "MET_ID";
        public const String AAM_FECHA_FIELD = "AAM_FECHA";
        public const String AAM_AVANCE_FIELD = "AAM_AVANCE";
        public const String AAM_DESCRIPCION_FIELD = "AAM_DESCRIPCION";


        public SigAvanceAccionMetaData()
		{
			BuildDataTables();
		}
        protected SigAvanceAccionMetaData(SerializationInfo info, StreamingContext context)
		{
			//
		}
        /// <summary>
		/// 
		/// </summary>
		private void BuildDataTables()
		{
            Columns.Add(MET_ID_FIELD, typeof(Decimal));
            Columns.Add(AAM_FECHA_FIELD, typeof(String));
            Columns.Add(AAM_AVANCE_FIELD, typeof(String));
            Columns.Add(AAM_DESCRIPCION_FIELD, typeof(String));
            TableName = SIG_AVANCE_ACCION_TABLE;
		}

        /// <summary>
        /// 
        /// </summary>
        /// <param name="row"></param>
        public void Add(DataRow row)
        {
            Rows.Add(row);
        }
    }
}
